package com.example.zhihu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.zhihu.entity.HotInfo;
import com.example.zhihu.entity.WeekHot;
import com.example.zhihu.vo.TopicsDataVo;
import com.example.zhihu.vo.WeekHotVo;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2022-05-05
 */
public interface IWeekHotService extends IService<WeekHot> {

  /**
   * 获取某个topic的热度，按照新增的回答数量来算
   * @param topic
   * @return
   */
  Integer getTopicAnswer(String topic);

  /**
   * 获取热榜的关键词的
   * @param hotInfoList
   * @return
   */
  List<WeekHotVo> getAdd(List<HotInfo> hotInfoList);

  TopicsDataVo getTopicsData(String id);
}
